package com.xhm.bbs.pojo.dto;

import com.xhm.common.pojo.dto.AbstractDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

import static com.xhm.bbs.pojo.example.BbsExample.*;

/**
 * 修改【帖子】的参数
 *
 * @author mrj
 * @date 2020/01/01
 */
@ApiModel(description = "修改【帖子】的参数")
public class BbsUpdateDTO extends AbstractDTO {

    @ApiModelProperty(notes = N_ID,example = E_ID,required = true)
    @NotNull
    private Long id;

    @ApiModelProperty(notes = N_USER_ID,example = E_USER_ID,required = true)
    @NotNull
    private Integer userId;

    @ApiModelProperty(notes = N_DD,example = E_DD,required = true)
    @NotNull
    @Length(max = 255)
    private String dd;


    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return this.userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getDd() {
        return this.dd;
    }

    public void setDd(String dd) {
        this.dd = dd;
    }


}

